@import './markdown.less';
@import './atom-one-light.less';
body {
  min-width: 1015px;
}

body, textarea, input, button, select, pre tt, kbd, samp, .serif {
  font-family: "Rubik", sans-serif
}

pre, code {
  font-size: 14px;
  font-family: lucida console, Consolas, Monaco, andale mono, ubuntu mono, monospace;
}

.k-layout {
  .header {
    height: 52px;
    line-height: 52px;
    background: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    box-shadow: 0 0 10px #ddd;
    min-width: 1015px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    .logo {
      float: left;
      width: 280px;
      min-width: 280px;
      a {
        font-size: 16px;
        font-weight: bold;
        color: #333;
        text-decoration: none;
      }
      img {
        height: 30px;
        vertical-align: middle;
        display: inline-block;
        margin-right: 10px;
        width: 30px;
      }
      sub {
        font-weight: 100;
      }
    }
    .top-menu {
      float: right;
      border: none;
      line-height: 50px;
    }
    .search-component {
      flex: 1;
      position: relative;
      padding-left: 2px;
      .k-select {
        width: 280px;
      }
      &::before {
        content: '';
        width: 1px;
        height: 15px;
        background-color: #ddd;
        left: 0;
        position: absolute;
        top: 21px;
      }
    }
  }
  .main {
    background: #fff;
    padding-top: 50px;
    height: 100vh;
    .docs-k-layout-sider {
      background: #fff;
      width: 300px;
      position: fixed;
      left: 0;
      padding-top: 20px;
      z-index: 100;
      overflow-y: auto;
      bottom: 0;
      top: 54px;
      overflow-x: hidden;
      padding-right: 1px;
      .k-menu-item-group-title {
        // font-size: 16px;
        // padding: 5px 0 5px 10px;
        // font-weight: 600;
        // color: #333;
      }
      &::-webkit-scrollbar {
        width: 0;
      }
      .left-menu {
        // max-height: 100vh;
        padding-bottom: 20px;
        // overflow-y: hidden;
        // overflow-x: auto;
        &:hover {
          // overflow-y: auto;
        }
        .sub {
          font-size: 12px;
        }
        .k-menu-item-group-title {
          padding-left: 24px;
          position: relative;
          font-size: 13px;
          margin-top: 16px;
          margin-bottom: 16px;
          &::after {
            position: absolute;
            content: '';
            height: 1px;
            background-color: #eee;
            left: 24px;
            right: 16px;
            bottom: 0;
          }
        }
        .k-menu-inline .k-menu-item {
          padding-left: 24px;
        }
      }
    }
    & > .k-layout-content {
      padding: 20px 40px 10px;
      margin-left: 300px;
      overflow: inherit;
    }
  }
  .docs-k-footer {
    text-align: center;
    a {
      font-size: 12px;
      color: #666;
    }
  }
}

.foot-nav {
  border-top: 1px solid #ddd;
  margin-top: 40px;
  a {
    padding: 30px 0;
    display: block;
    text-transform: capitalize;
  }
  .k-col:last-child {
    text-align: right;
  }
}

.all-components {
  .k-col {
    margin-bottom: 20px;
    a {
      color: rgba(0, 0, 0, 0.8);
    }
  }
  .k-card {
    transition: all .5s;
    cursor: pointer;
    &:hover {
      box-shadow: 0 10px 40px 10px rgba(0, 0, 0, 0.161);
      border-color: #ddd;
      .icon-view {
        transform: scale(1.2);
        color: #3a96ff50;
      }
    }
    .k-card-body {
      padding-top: 40px;
      padding-bottom: 40px;
      text-align: center;
    }
    .icon-view {
      font-size: 60px;
      transition: all .5s;
      color: #ddd;
    }
  }
}

.demo-poptip, .demo-tooltip, .demo-popconfirm {
  .k-btn {
    margin-right: 10px;
    margin-bottom: 10px;
    min-width: 70px;
  }
}

.demo-tooltip-color {
  .k-btn {
    margin: 0 8px 8px 0;
    min-width: auto;
  }
}

.demo-button, .k-message-demo, .demo-datepicker, .k-notice-demo, .demo-dropdown, .demo-modal, .demo-select {
  .k-btn, .k-btn-group, .k-select, .k-datepicker, .k-radio-group {
    margin-right: 10px;
    margin-bottom: 10px;
  }
  .k-btn-group, .k-radio-group {
    .k-btn {
      margin-right: 0px;
      margin-bottom: 0px;
    }
  }
}

.demo-select {
  .k-select-item, .k-select-tag {
    text-transform: capitalize;
  }
}

.demo-progress {
  .k-progress {
    margin: 0 8px 8px 0;
  }
}

.icon-item {
  // overflow: hidden;
  display: inline-block;
  span {
    text-align: center;
    width: 80px;
    height: 80px;
    line-height: 80px;
    color: #555;
    float: left;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
    &:hover {
      color: #3a95ff;
      background: #f5f5f5;
      box-shadow: 0 0 15px #ddd;
    }
  }
}

.demo-grid {
  .h-64 {
    height: 64px;
    line-height: 64px;
  }
  .h-96 {
    height: 96px;
    line-height: 96px;
  }
  .h-128 {
    height: 128px;
    line-height: 128px;
  }
  .h-72 {
    height: 72px;
    line-height: 72px;
  }
  .k-row-flex {
    padding: 10px 0;
    background: #f1f1f1;
  }
  .k-row {
    margin: 10px 0;
    .k-col {
      text-align: center;
      padding: 10px 0;
      color: #fff;
      &:nth-child(even) {
        background: rgba(0, 153, 229, 0.7);
      }
      &:nth-child(odd) {
        background: rgba(0, 153, 229, 0.9);
      }
    }
  }
  .k-row.row-gutter {
    .k-col {
      background: transparent;
      div {
        box-sizing: border-box;
        line-height: 45px;
        &:nth-child(even) {
          background: rgba(0, 153, 229, 0.7);
        }
        &:nth-child(odd) {
          background: rgba(0, 153, 229, 0.9);
        }
      }
    }
  }
}

.demo-affix-scroll {
  height: 100px;
  overflow-y: scroll;
}

.demo-affix-inner {
  height: 300px;
  /* background:#efefef; */
  padding-top: 30px;
  background-image: linear-gradient(-45deg, #cdcdcd 25%, transparent 0), linear-gradient(45deg, #cdcdcd 25%, transparent 0), linear-gradient(-45deg, transparent 75%, #cdcdcd 0), linear-gradient(45deg, transparent 75%, #cdcdcd 0);
  background-size: 20px 20px;
  background-position: 0 0, 0 -10px, -10px 10px, 10px 0;
}

.demo-badge {
  .box {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 5px;
  }
  .k-badge {
    margin-right: 30px;
  }
}

.demo-carousel {
  .k-carousel {
    height: 230px;
    .k-carousel-item {
      background: #6c98d6;
      line-height: 230px;
      text-align: center;
      font-size: 30px;
      font-weight: bold;
      color: #fff;
    }
  }
}

.switch-demo {
  .k-switch {
    margin-bottom: 10px;
    margin-right: 10px
  }
}

.demo-input {
  .k-input, .k-textarea {
    margin-bottom: 10px;
  }
  .k-input-wrapper {
    margin-bottom: 10px;
    .k-input {
      margin: 0;
    }
  }
}

.route-main {
  position: relative;
  min-height: 100%;
  .fade-enter-active, .fade-exit-active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
  }
}

.k-demo-layout .k-demo-main .nav {
  padding: 16px 0;
}

.fade-enter {
  opacity: 0.01;
}

.fade-enter-active {
  opacity: 1;
  transition: opacity 500ms ease-in;
}

.fade-exit {
  opacity: 1;
}

.fade-exit-active {
  opacity: 0.01;
  transition: opacity 500ms ease-in;
}